<?php
// Test of R0910CMS 
// created by TLightSky
// time : 20100124

class SmartyTest extends UnitTestCase {
    function testView() {
        $smarty1 = getInstance('R_Manage')->getView(TEST_ROOT.'view'.SEP);
        $smarty2 = getInstance('R_Manage')->getView(TEST_ROOT.'view'.SEP);
	    // smarty is different because the getSmarty is not Singleton any more
        $this->assertFalse($smarty1===$smarty2);
    }
	function testToolkit() {
		$tk1 = getInstance('R_Toolkit');
		$tk2 = getInstance('R_Toolkit');
        $this->assertTrue($tk1===$tk2);
	}
}
